<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="/struts-tags" prefix="s"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
	<head>
		<base href="<%=basePath%>">

		<title>多文件上传</title>

		<meta http-equiv="pragma" content="no-cache">
		<meta http-equiv="cache-control" content="no-cache">
		<meta http-equiv="expires" content="0">
		<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
		<meta http-equiv="description" content="This is my page">
		<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->

	</head>

	<body>
		<font color="red"><s:fielderror /> </font>
		<form action="fileUpload.action" method="POST"
			enctype="multipart/form-data">
			文件标题：
			<input type="text" name="title" size="50" value="${param.title }" />
			<br />
			<!-- 设置二个文件域,名字相同 -->
			选择第一个文件：
			<input type="file" name="upload" size="50" />
			<br />
			选择第二个文件：
			<input type="file" name="upload" size="50" />
			<br />
			<input type="submit" value=" 上传 " />
		</form>
	</body>
</html>
